package com.googlecode.maurersmarbles;

import com.googlecode.maurersmarbles.framework.Graphics;

public abstract class Table {
	
	/**
	 * The board to draw with.
	 */
	protected Board board = null;

	public void draw(Graphics g, GameState gameState) {
		
		drawBackground(g, 0, 0, g.getWidth(), g.getHeight());
		
		if(board != null) {
			board.draw(g, gameState);
		}
		
	}
	
	public abstract void drawBackground(Graphics g, int x, int y, int width,
			int height);

}
